package com.resign.carl.strategy;

import com.resign.carl.strategy.api.Duck;
import com.resign.carl.strategy.api.impl.FlyNoWay;
import com.resign.carl.strategy.api.impl.Quack;

/**
 * Created by carl.zhao on 2016/6/13.
 */
public class ModelDuck extends Duck {

    public ModelDuck(){
        flyBehavior = new FlyNoWay();
        quackBehavior = new Quack();
    }

    @Override
    public void display() {
        System.out.println("I'm a model Duck");
    }
}
